/*
 * @Author: cjx
 * @Date: 2023-04-18 09:23:26
 * @LastEditTime: 2023-04-18 09:25:17
 * @Description: 设备基础档案接口
 */
import Qs from 'Qs'
import axios from '@/utils/axios.request'

/**
 * 获取设备详情
 * @returns {ClientRequest | * | AxiosPromise<any> | ClientHttp2Stream | void}
 */
export const getDetail = (type: string, equdatasysid: string) => {
  const url = `/api/eqd${type}tpm/eqd${type}tpm/getDetailBytype`
  return axios.post({
    url: url,
    withCredentials: true,
    data: Qs.stringify({
      equdatasysid
    })
  })
}
